package com.zeroxml.cms.service.impl;

import com.zeroxml.cms.service.ITagService;
import com.zeroxml.cms.bo.Tag;
import com.zeroxml.cms.dao.ITagDAO;

import java.util.List;

/**
 * User: cjp
 * Date: 2007-9-22
 * Time: 8:05:31
 */
public class TagService implements ITagService {
    private ITagDAO tagDAO;

    public void setTagDAO(ITagDAO tagDAO) {
        this.tagDAO = tagDAO;
    }

    public List<Tag> getTags() {
        return tagDAO.findAll();
    }

    public List<Tag> getHotTags(int count) {
        return tagDAO.getHotTags(count);
    }
}
